#include<stdio.h>
#include<math.h>
int main()
{
	int n;
	scanf_s("%d", &n);
	int fac = n;
	printf("%d=", n);
	for (int i=2;i<sqrt(n);i++)
	{
		int x = 1;
        while ((fac%i)==0)
		{
			fac = fac / i;
			if (x == 1)
			{
				printf("%d", i);
				x++;
			}
			printf("*%d", i);
		}
	}
	if (fac == 1)
	{

	}
	else if(fac==n)
	{
		printf("%d", fac);
	}
	else
	{
		printf("*%d", fac);
	}
	
}